package com.yanmaohu.yulia.bean;

import java.util.List;

/**
 * @author Bright Lee
 */
public final class RowType implements DataType {

    private int beginIndex;
    private int endIndex;
    private List<FieldDefinition> fieldDefinitions;

    public RowType(int beginIndex, int endIndex, List<FieldDefinition> fieldDefinitions) {
        this.beginIndex = beginIndex;
        this.endIndex = endIndex;
        this.fieldDefinitions = fieldDefinitions;
    }

    @Override
    public int getBeginIndex() {
        return 0;
    }

    @Override
    public int getEndIndex() {
        return 0;
    }

    public int size() {
        return fieldDefinitions.size();
    }

    public FieldDefinition get(int index) {
        return fieldDefinitions.get(index);
    }

}
